﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using AL.Doodled;

namespace Testing
{
    /// <summary>
    /// This class handles all the initialization logic 
    /// for the doodled engine.
    /// </summary>
    public class DoodledHandler
    {
        #region constructor
        public DoodledHandler(Game game, DoodledEngine gui)
        {
            gui = new DoodledEngine(game);

            gui.LoadRegisterData(@"
Default: 'hello'
AppName: 'Doodled'
");

            gui.LoadResourceFile("../../../resources/default.drs");

            Widget widget = Widget.Parse(@"
<simple name='hello' style='x: 10%;'>Hello world</simple>
");
        }
        #endregion
    }
}
